package com.lijinjiang.controller;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author Li
 * @Date 2022/9/19 14:12
 * @ModifyDate 2022/9/19 14:12
 * @Version 1.0
 */
public class UserService {
    public String login(String username, String password) {
        if ("admin".equals(username) && "123456".equals(password)){
            return "登录成功";
        } else {
            return "用户名或密码有问题";
        }
    }

    public void listUsers(){
        System.out.println(10/0);
        System.out.println("查询全部用户成功");
    }

    public void insertUser(){
        System.out.println("插入用户成功");
    }
}
